import request from "@/utils/request";

export function getData(params) {
  return request({
    url: "/customer-service/question",
    method: "get",
    params
  });
}

export function getDetailData(id) {
  return request({
    url: "/customer-service/question/detail",
    method: "get",
    params: { id }
  });
}

export function putStatusData(id) {
  return request({
    url: "/customer-service/question/status",
    method: "put",
    data: { id }
  });
}

export function postAddData(data) {
  return request({
    url: "/customer-service/question",
    method: "post",
    data
  });
}

export function postEditData(data) {
  return request({
    url: "/customer-service/question/edit",
    method: "post",
    data
  });
}

export function deleteData(id) {
  return request({
    url: "/customer-service/question",
    method: "delete",
    data: { id }
  });
}
